package com.wqiuqiu.gulimall.auth.feign;


import com.wqiuqiu.common.R;
import com.wqiuqiu.common.to.login.AccountTo;
import com.wqiuqiu.common.to.thridservice.Oauth2To;
import com.wqiuqiu.gulimall.auth.vo.RegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("gulimall-member")
public interface MemberFeignService {


    @PostMapping("/member/member/memberReg")
    R memberReg(@RequestBody RegisterVo vo);

    @PostMapping("/member/member/oauth2/login")
    R oauth2Login(@RequestBody Oauth2To oauth2To);
    @PostMapping("/member/member/gulimall/login")
    R gulimallLogin(@RequestBody AccountTo to);
}
